package  com.bingya.service.common
{
	import mx.collections.ArrayCollection;

	[RemoteClass(alias="com.bingya.model.Page")]     
	[Bindable]  
	public class Page  
	{  
		public var list:ArrayCollection;  
		public var length:int=4;  
		private var _count:int=0;  
		public var current:int=0;  
		
		public var total:int=0;
		
		public function Page()  
		{  
			
		} 

		public function get count():int
		{
			return _count;
		}

		public function set count(value:int):void
		{
			_count = value;
			
			var i:Number=_count%length;
			var j:Number=_count/length;
			
			if(i>0){
				j++
			}
			
			total=j;
		}

	}  
}